import { requests } from "./requests";

export const login = (username, password) => requests({ method: "post", url: `/user/login?username=${username}&password=${password}` })
export const register = (name, username, password) => requests({ method: "post", url: `/user/register?username=${username}&password=${password}&name=${name}` })
export const findFoot = (token) => requests({ method: "post", url: `/user/find?token=${token}`})
export const deleteFoot = (name,token) =>  requests({ method: "post", url: `/user/delete?footName=${name}&token=${token}` })
export const saveFoot = (name,token) => requests({ method: "post", url: `/user/save?footName=${name}&token=${token}` })